void delay(volatile int d)
{
	while (d--);
}
